//
//  Other_Operation.m
//  DXC
//
//  Created by TOPTEAM on 2017/5/9.
//  Copyright © 2017年 TOPTEAM. All rights reserved.
//

#import "Other_Operation.h"

@implementation Other_Operation
-(void)main
{
    //耗时操作
    for (NSInteger i =0; i<1000; i++) {
        //        if (self.isCancelled) {
        //            return;
        //        }
        NSLog(@"1-%zd---%@",i,[NSThread currentThread]);
    }
    
    if (self.isCancelled) {
        return;
    }
    for (NSInteger i =0; i<1000; i++) {
        NSLog(@"2-%zd---%@",i,[NSThread currentThread]);
    }
    
    if (self.isCancelled) {
        return;
    }
    
    for (NSInteger i =0; i<1000; i++) {
        NSLog(@"3-%zd---%@",i,[NSThread currentThread]);
    }
}
@end
